import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

// 挂载全局原型
Vue.prototype.serverUrl = 'https://www.imovietrailer.com/superhero';
// 配置公共参数
// Vue.prototype.visitKey = 'qq=lee33985089';
// Vue.prototype.visitKey = 'qq=lee37350131';
// 843002185  这个是在github上找到 https://github.com/TinaXie/next-superhero-dev
// 649252367  这个也是github上找到 https://github.com/sus1990/next_superhero_dev
Vue.prototype.visitKey = 'qq=843002185';
Vue.prototype.getGlobalUser = function(key){
	let userInfo = uni.getStorageSync("globalUser");
	if (userInfo != null && userInfo != "" && userInfo != undefined) {
		return userInfo;
	} else {
		return null;
	}
}

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
